package com.hockeo.shared.rpc.command;

/**
 * Interface to be implemented by classes that want to directly receive responses from
 * submitted RPC commands.
 *
 * @param <T> the type of the response that should be received
 * @version $Id$
 * @author jjanke
 */
public interface IResponseReceiver<T extends IResponse>
{
  /**
   * Method that is invoked when a response for a submitted command is received.
   *
   * @param response the received response
   * @param strInfo an additional info that may have been submitted when a
   *          ReceiverCallback has been created. It can be used to differentiate between
   *          multiple commands returning the same type of response.
   */
  public void gotResponse( T response, String strInfo );
}
